<template>
	<view style="padding-bottom: 80upx;">
		<view class="zcModel-title  uni-flex"> <view class='iconfont icon-calendar'></view>日期：{{InsurePolicy.busiDate?InsurePolicy.busiDate:''}}</view>
		
		<view class="zcModel-card">
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>被保险人姓名：</view><view>{{InsurePolicy.InsureManName}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>被保险人身份证：</view><view>{{InsurePolicy.InsureManCardNo}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>被保险人电话：</view><view>{{InsurePolicy.InsureManTelephone}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>保险公司名称：</view><view>{{InsurePolicy.InsureCompany}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>险种类别：</view><view>{{InsurePolicy.InsureTypeCategory}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>保费：</view><view>{{InsurePolicy.InsureMoney}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>毛保费：</view><view>{{InsurePolicy.totalBaoFei}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>净保费：</view><view>{{InsurePolicy.pureBaoFei}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>税：</view><view>{{InsurePolicy.Taxes}}</view>
			</view>
			<!-- <view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>车船税：</view><view>{{InsurePolicy.InsureManName}}</view>
			</view> -->
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>提交日期：</view><view>{{InsurePolicy.InsureSubmitDate}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>交单日期：</view><view>{{InsurePolicy.jiaoDDate}}</view>
			</view>
			
		</view>
		<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between title">
			<view>保单状态</view><view></view>
		</view>
		<view  class="zcModel-card">	
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>出单来源：</view><view>{{InsurePolicy.InsureSource}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>流水单号：</view><view>{{InsurePolicy.InsurePolicyCode}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>签单员：</view><view>{{InsurePolicy.SalesManName}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>打单员：</view><view>{{InsurePolicy.SalesManName}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>登记人：</view><view>{{InsurePolicy.SalesManName}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>登记时间：</view><view>{{InsurePolicy.VehicleRegistryDate}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>新旧车：</view><view>{{InsurePolicy.VehicleRegType}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>过户车：</view><view>{{InsurePolicy.VehicleRegType}}</view>
			</view>
		</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between title">
			<view>转续保状态</view><view></view>
		</view>
		<view  class="zcModel-card">
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>保全状态：</view><view>{{InsurePolicy.bqState}}</view>
			</view>
		</view>
		<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between title">
			<view>保单备注</view><view></view>
		</view>
		<view class="zcModel-card">
			
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>行驶证车主：</view><view>{{InsurePolicy.VehicleOwnerName}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>车主身份证：</view><view>{{InsurePolicy.VehicleOwnerCardNo}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>发动机型号：</view><view>{{InsurePolicy.VehicleEngineNo}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>车架号：</view><view>{{InsurePolicy.VehicleVIN}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>车辆登记日期：</view><view>{{InsurePolicy.VehicleRegistryDate}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>使用年限：</view><view>{{InsurePolicy.useYear}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>车辆型号：</view><view>{{InsurePolicy.VehicleType}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>使用性质：</view><view>{{InsurePolicy.VehicleBizType}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>核定载客：</view><view>{{InsurePolicy.VehiclePassengerNum}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>新车购置价：</view><view>{{InsurePolicy.VehiclePrice}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>行驶区域：</view><view>{{InsurePolicy.driveZone}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>车辆所属：</view><view>{{InsurePolicy.carBelong}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>车辆种类：</view><view>{{InsurePolicy.VehicleUsingType}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>车辆类型：</view><view>{{InsurePolicy.VehicleType}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>车辆性质：</view><view>{{InsurePolicy.VehicleBizType}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>车牌号：</view><view>{{InsurePolicy.VehiclePlateNo}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>排量：</view><view>{{InsurePolicy.VehicleDisplacement}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>出险次数：</view><view>{{InsurePolicy.onInsurNo}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>刷卡日期：</view><view>{{InsurePolicy.getMoneyDate}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>是否脱保：</view><view>{{InsurePolicy.isOffAid}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>总折扣：</view><view>{{InsurePolicy.totalRate}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>无赔款优待系数：</view><view>{{InsurePolicy.Ncd}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>交通违法系数：</view><view>{{InsurePolicy.Tvc}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>渠道系数：</view><view>{{InsurePolicy.Icc}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>自主核保系数：</view><view>{{InsurePolicy.Suf}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>特别约定：</view><view>{{InsurePolicy.specialMemo}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>投保城市：</view><view>{{InsurePolicy.InsureBranchName}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>投保机构：</view><view>{{InsurePolicy.InsureCompany}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>投保部门：</view><view>{{InsurePolicy.InsureTypeCategory}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>投保日期：</view><view>{{InsurePolicy.InsurePurchaseDate}}</view>
			</view>
			<view v-if="InsurePolicy.InsureTypeCategory === '商业险'" class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>商业险起保日期：</view><view>{{InsurePolicy.InsureStartDate}}</view>
			</view>
			<view v-else class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>交强险起保日期：</view><view>{{InsurePolicy.InsureStartDate}}</view>
			</view>
			<view v-if="InsurePolicy.InsureTypeCategory === '交强险'" class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>交强险保单号：</view><view>{{InsurePolicy.InsureNo}}</view>
			</view>
			<view v-else class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>商业险保单号：</view><view>{{InsurePolicy.InsureNo}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>销售类型：</view><view>{{InsurePolicy.jiaoDDate}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>商务政策：</view><view>{{InsurePolicy.Taxes}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>投保人姓名：</view><view>{{InsurePolicy.InsureHolderName}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>投保人身份证：</view><view>{{InsurePolicy.InsureHolderCardNo}}</view>
			</view>
			<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between">
				<view>投保人电话：</view><view>{{InsurePolicy.InsureHolderTelephone}}</view>
			</view>
		</view>
	
		<!-- 保单 险种信息 -->
		<view class="zcModel-card-item uni-flex zcAlignI_center zcJustifyC_between title" style="padding-bottom: 0;" >
			<view>险种信息</view><view></view>
		</view>
		<view class="zctab_bar_box">
			<view class="zcUni-tab-bar">
					<!-- 自定义险种 选择栏 -->
					<view class="zc_tab_bar">
						<view class="zcJustifyC_between zcAlignI_center zcBizStyle" v-show="insures3.insure_traffic.isCheck">
							<checkbox-group >
								<label class="checkbox">
									<checkbox :checked="insures3.insure_traffic.isCheck" :disabled="isDisabled" style="transform: scale(0.5);"/>
								</label>
							</checkbox-group>
							<view style="flex-shrink: 0;flex: 1;">交强险</view>
							<view class="zcJustifyC_between zcAlignI_center" style="display: flex;flex: 1;position: relative;">
								<input type="text" placeholder-style="text-align: center;" :value="InsureTrafficDate" :disabled="isDisabled" />
							</view>
						</view>
						
						<view v-show="insures3.insure_traffic.isCheck" style="padding: 0 20upx;">
							<block v-for="(item,index) in insures3.insure_traffic.insureItems" :key="index">
								<view class="zcJustifyC_between zcAlignI_center" style="display: flex;padding: 20upx 0;margin: 0 20upx;border-top: 1px solid #F5F5F5;">
									<checkbox-group >
										<label class="checkbox">
											<checkbox :checked="true" :disabled="isDisabled" style="transform: scale(0.5);" />
										</label>
									</checkbox-group>
									<view style="flex-shrink: 0;flex: 1;" >{{item.title}}</view>
									<view class="zcLabel" v-show="item.isShowFreePay" :class="item.isFreePay?'zcLabelActive':''" >不计免赔</view>
									<view v-show="!item.isInsureAmount" class="uni-flex uni-flex-item" style="width: 172upx;" ></view>
									<view v-show="item.isInsureAmount" class="zcPicker-model-item" >
										<input :disabled="isDisabled" style="text-align: right;padding-left: 20upx;" type="text" :value="item.value" />
									</view>
								</view>
							</block>
						</view>
						
						<view class="zcJustifyC_between zcAlignI_center zcBizStyle" v-show="insures3.insure_biz.isCheck" >
							<checkbox-group >
								<label class="checkbox">
									<checkbox :checked="insures3.insure_biz.isCheck" :disabled="isDisabled" style="transform: scale(0.5);" />
								</label>
							</checkbox-group>
							<view style="flex-shrink: 0;flex: 1;" >商业险</view>
							<view class="zcJustifyC_between zcAlignI_center" style="display: flex;flex: 1;position: relative;">
								<input type="text" placeholder-style="text-align: center;" :value="InsureBizDate" :disabled="isDisabled" />
							</view>
						</view>
						
						<view v-show="insures3.insure_biz.isCheck" style="padding: 0 20upx;">
							<block v-for="(item,index) in insures3.insure_biz.insureItems" :key="index">
								<view class="zcJustifyC_between zcAlignI_center" style="display: flex;padding: 20upx 0;margin: 0 20upx;border-top: 1px solid #F5F5F5;">
									<checkbox-group >
										<label class="checkbox">
											<checkbox :checked="true" :disabled="isDisabled" style="transform: scale(0.5);" />
										</label>
									</checkbox-group>
									<view style="flex-shrink: 0;flex: 1;" >{{item.title}}</view>
									<view class="zcLabel" v-show="item.isShowFreePay" :class="item.isFreePay?'zcLabelActive':''" >不计免赔</view>
									<view v-show="!item.isInsureAmount" class="uni-flex uni-flex-item" style="width: 172upx;" ></view>
									<view v-show="item.isInsureAmount" class="zcPicker-model-item" >
										<input :disabled="isDisabled" style="text-align: right;padding-left: 20upx;" type="text" :value="item.value" />
									</view>
								</view>
							</block>
						</view>
						
					</view>
				<!-- </swiper> -->
			</view>
		</view>
	</view>
</template>

<script>
	
	
	let _this;
	export default {
		data() {
			return {
				InsurePolicySN:'',
				isDisabled:true,
				InsureTrafficDate:'',	// 交强险 起期
				InsureBizDate:'',	// 商业险 起期
				insures3:{
					insure_traffic:{	//交强险
						isCheck:false,	//是否选中 险种类型
						insureItems:[	//险种列表
							
						]
					},
					insure_biz:{	//商业险
						isCheck:false,	//是否选中 险种类型
						insureItems:[	//险种列表
							
						]
					}
				},
				InsurePolicy:{}
			}
		},
		onLoad(e) {
			_this = this;
			
			if (e.InsurePolicySN) {
				_this.InsurePolicySN = e.InsurePolicySN;
				_this.zcGetInsurePolicy();
			}
		},
		methods: {
			zcGetInsurePolicy() {
				uni.showLoading({
					title: '加载中',
					mask: true
				});
				_this.$ZcPublic.Server.Post({
					IsNeedLogin: true,
					Paras: {
						Name: 'uni_Insure_Detail',
						Action: 'Ext_GetInsurePolicy',
						Data: {
							SN:_this.InsurePolicySN,
						}
					},
					Callback:function(resjson,scope) {
						if (resjson.state === 'back') {
							console.log('保单 详情 = ',resjson.data);
							if (!resjson.success) {
								uni.showModal({
									title:'温馨提示',
									showCancel:false,
									content:''+resjson.msg
								})
								return;
							}
							
							
							let data={}
							if (resjson.data !== null) {
								if (resjson.data.InsureManIsOwner) {		// 判断 被保人是否是车主
									data.InsureManName = resjson.data.VehicleOwnerName;	// 被保人姓名
									data.InsureManCardNo = resjson.data.VehicleOwnerCardNo;	// 被保人证件号
									data.InsureManTelephone = resjson.data.VehicleOwnerTelephone;	// 被保人电话
								}else{
									data.InsureManName = resjson.data.InsureManName;	// 被保人姓名
									data.InsureManCardNo = resjson.data.InsureManCardNo;	// 被保人证件号
									data.InsureManTelephone = resjson.data.InsureManTelephone;	// 被保人电话
								}
								data.InsureCompany = resjson.data.InsureCompany;	// 保险公司
								data.InsureTypeCategory = resjson.data.InsureTypeCategory;	// 险种类别
								data.InsureMoney = resjson.data.InsureMoney;	// 保费
								data.totalBaoFei = resjson.data.totalBaoFei;	// 毛保费
								data.pureBaoFei = resjson.data.pureBaoFei;	// 净保费
								data.Taxes = resjson.data.Taxes;	// 税
								data.InsureSubmitDate = resjson.data.InsureSubmitDate;	// 提交时间
								data.jiaoDDate = resjson.data.jiaoDDate;	// 交单日期
								
								// ----------------------------------------------------------
								data.InsureSource = resjson.data.InsureSource;	// 出单来源（）
								data.InsurePolicyCode = resjson.data.InsurePolicyCode;	// 流水单号（）
								data.SalesManName = resjson.data.SalesManName;	// 签单员（）
								data.SalesManName = resjson.data.SalesManName;	// 打单员（）
								data.SalesManName = resjson.data.SalesManName;	// 登记人（）
								data.VehicleRegistryDate = resjson.data.VehicleRegistryDate;	// 登记时间（）
								data.VehicleRegType = resjson.data.VehicleRegType;	// 新旧车
								data.VehicleRegType = resjson.data.VehicleRegType;	// 过户车（）
								// -----------------------------------------
								data.bqState = resjson.data.bqState;	// 保全状态
								// ------------------------------------------
								data.VehicleOwnerName = resjson.data.VehicleOwnerName;	// 行驶证车主
								data.VehicleOwnerCardNo = resjson.data.VehicleOwnerCardNo;	// 车主身份证
								data.VehicleEngineNo = resjson.data.VehicleEngineNo;	// 发动机型号
								data.VehiclePlateNo = resjson.data.VehiclePlateNo;	// 车牌号
								data.VehicleVIN = resjson.data.VehicleVIN;	// 车架号
								data.VehicleRegistryDate = resjson.data.VehicleRegistryDate;	// 初登日期
								data.useYear = resjson.data.useYear;	// 使用年限
								data.VehicleType = resjson.data.VehicleType;	// 车辆型号
								data.VehicleBizType = resjson.data.VehicleBizType;	// 使用性质
								data.VehiclePassengerNum = resjson.data.VehiclePassengerNum;	// 核定载客
								data.VehiclePrice = resjson.data.VehiclePrice;	// 新车购置价
								data.driveZone = resjson.data.driveZone;	// 行驶区域
								data.carBelong = resjson.data.carBelong;	// 车辆所属
								data.VehicleUsingType = resjson.data.VehicleUsingType;	// 车辆种类（）
								data.VehicleType = resjson.data.VehicleType;	// 车辆类型（）
								data.VehicleBizType = resjson.data.VehicleBizType;	// 车辆性质（使用性质）
								data.VehicleDisplacement = resjson.data.VehicleDisplacement;	// 排量
								data.onInsurNo = resjson.data.onInsurNo;	// 出险次数
								data.getMoneyDate = resjson.data.getMoneyDate;	// 刷卡日期
								data.isOffAid = resjson.data.isOffAid;	// 是否脱保
								data.totalRate = resjson.data.totalRate;	// 总折扣
								data.Ncd = resjson.data.Ncd;	// 无赔款优待系数
								data.Tvc = resjson.data.Tvc;	// 交通违法系数
								data.Icc = resjson.data.Icc;	// 渠道系数
								data.Suf = resjson.data.Suf;	// 自主核保系数
								data.specialMemo = resjson.data.specialMemo;	// 特别约定
								data.InsureBranchName = resjson.data.InsureBranchName;	// 投保城市（）
								data.InsureCompany = resjson.data.InsureCompany;	// 投保机构()
								data.InsureTypeCategory = resjson.data.InsureTypeCategory;	// 投保部门()
								data.InsurePurchaseDate  = resjson.data.InsurePurchaseDate;	// 投保日期()
								data.InsureStartDate = resjson.data.InsureStartDate;	// 起保日期
								data.InsureNo = resjson.data.InsureNo;	// 保单号
								data.jiaoDDate = resjson.data.jiaoDDate;	// 销售类型（）
								data.Taxes = resjson.data.Taxes;	// 商务政策（）
								data.InsureHolderName = resjson.data.InsureHolderName;	// 投保人姓名
								data.InsureHolderCardNo = resjson.data.InsureHolderCardNo;	// 投保人身份证
								data.InsureHolderTelephone = resjson.data.InsureHolderTelephone;	// 投保人电话
								
								//  保险险种 信息初始化
								if (resjson.data.InsureTypeCategory === '交强险') {
									_this.InsureTrafficDate = resjson.data.InsureStartDate;	//交强险 起期
									_this.insures3.insure_traffic.isCheck = true;	//交强险 险种
									
									let insureItems = [];	//交强险 险种
									for (let i = 0; i < resjson.data.Items.length; i++) {
										let item = {
											isCheck:false,	//是否选中
											title:resjson.data.Items[i].InsureTypeName,	//险种名称
											isFreePay:false,	//是否 不计免赔
											isShowFreePay:false,	//是否显示 不计免赔
											value:'',	//所选 保额
											isInsureAmount:false	//是否有 保额
										}
										if (resjson.data.Items[i].InsureTypeFreePayCode) {
											item.isShowFreePay = true;
											item.isFreePay = resjson.data.Items[i].InsureTypeIsFreePay;
										}
										if (resjson.data.Items[i].InsureAmountText) {
											item.isInsureAmount = true;
											item.value = resjson.data.Items[i].InsureAmountText;
										}
										insureItems.push(item);
									}
									_this.insures3.insure_traffic.insureItems = insureItems;
								}else if (resjson.data.InsureTypeCategory === '商业险') {
									_this.InsureBizDate = resjson.data.InsureStartDate;	// 商业险 起期
									_this.insures3.insure_biz.isCheck = true;	//商业险 险种
									
									let insureItems = [];
									for (let i = 0; i < resjson.data.Items.length; i++) {
										let item = {
											isCheck:false,	//是否选中
											title:resjson.data.Items[i].InsureTypeName,	//险种名称
											isFreePay:false,	//是否 不计免赔
											isShowFreePay:false,	//是否显示 不计免赔
											value:'',	//所选 保额
											isInsureAmount:false	//是否有 保额
										}
										if (resjson.data.Items[i].InsureTypeFreePayCode) {
											item.isShowFreePay = true;
											item.isFreePay = resjson.data.Items[i].InsureTypeIsFreePay;
										}
										if (resjson.data.Items[i].InsureAmountText) {
											item.isInsureAmount = true;
											item.value = resjson.data.Items[i].InsureAmountText;
										}
										insureItems.push(item);
									}
									_this.insures3.insure_biz.insureItems = insureItems;
								}
								
								
								
							}
							_this.InsurePolicy = data;
							console.log('数据 = ',data);
						}
                        if (resjson.state === 'end') {
                            uni.hideLoading();
                        }
					},
					Scope: this
				})
			},
		}
	}
</script>

<style>
	.zcModel-title{padding: 16upx 30upx;display: flex;color: #26A6FF;font-size: 30upx;}
	
	.zcModel-card{padding: 0 20upx !important;background-color: #FFFFFF;margin-bottom: 60upx; margin: 0 20upx;}
	.zcModel-card-item{padding: 30upx;box-sizing: border-box;}
	.zcModel-card-item view{display: flex;box-sizing: border-box;line-height: 1;}
	/* 2019-10-24样式修改 */
	.zcModel-card>view{
		height: 80upx;
		line-height: 80upx;
		background-color: #fff;
		border-bottom: 1upx solid #E5E5E5;
	}
		.zcModel-card>view:last-child{
			border-bottom: none;
		}
/* .title{
	padding: 16upx 30upx;
} */
.icon-calendar{
	font-size: 34upx;
	margin: 0 18upx 0 10upx;
	position: relative;
	top:-3upx
}

	/* 险种样式 */
	.zctab_bar_box{display: flex;flex-direction: column;align-items: center;margin: 20upx;box-sizing: border-box;}
	.zcUni-tab-bar{width: 100%;flex: 1;background-color: #FFFFFF;overflow: inherit;position: relative;display: flex;}
	
	.zc_tab_bar{overflow: hidden;display: block;will-change:transform;transition: all 0.4S ease-in;width: 100%;background-color: #FFFFFF;}
	.zc_tab_bar>view{padding: 20upx;}
	.zc_tab_bar>view>view{font-size: 28upx;}
	.zc_tab_bar checkbox .wx-checkbox-input{border-radius: 100%;}
	/* checkbox .wx-checkbox-input.wx-checkbox-input-checked{background-color: #3CA4FA!important;} */
	.zc_tab_bar checkbox-group{justify-content: flex-end;width: inherit;}
	.zc_tab_bar checkbox .wx-checkbox-input.wx-checkbox-input-checked::before{color: #FFFFFF!important;}
	.zc_tab_bar .card_item{border: none!important;padding: 0!important;}
	.zc_tab_bar zc-card{flex: 1;}
	.zc_tab_bar .checkbox{padding: 0!important;}.zc_tab_bar .checkbox checkbox{margin: 0!important;}
	.zc_tab_bar .card_item_text,.zc_tab_bar .zcPicker-model-item{width: 172upx!important;flex: 1!important;}
	.zc_tab_bar .card_item_text picker{padding-left: 0!important;}
	.zc_tab_bar .card_item_text picker .uni-input{z-index: 6;text-align: center!important;}
	.zc_tab_bar .uni-input{text-align: right;background-color: rgba(255,255,255,0.1);padding-right: 40upx;}
	.zcLabel{padding: 0 10upx;border-radius: 16upx;border: 2upx solid #C5C5C5;color: #C5C5C5;}
	.zcLabelActive{border-color:#3CA4FA;color: #3CA4FA;}
	.zcBizStyle{display: flex;border-top: 16upx solid #F5F5F5;}
	.zcBizStyle:first-child{border-top: none;}
	.zcBizStyle input{display: flex;flex: 1;position: absolute;right: 0;margin-left: 35upx;margin-right: 50upx;border-bottom: 1px solid #999999;text-align: center;}
	.zc_tab_bar input[disabled]{color: #999999;}
	.zcBizStyle .uni-input{text-align: center;}
</style>
